-- GENERATED SPELL FOR [Frayfeather Skystormer] --


function spell0_5305(pUnit, Event) --@Lightning Cloud,n/a--
pUnit:FullCastSpellOnTarget(6535,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5305', 18000, 1)
end

function Sorts_5305(pUnit, Event)
local choix_sorts_5305 = math.random(0, 0)
if choix_sorts_5305 == 0 then
pUnit:RegisterEvent('spell0_5305', 1, 1)
end
end

function mob5305_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5305', math.random(1500, 3000), 1)
end

function mob5305_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5305_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5305_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5305, 1, 'mob5305_Action')
RegisterUnitEvent(5305, 2, 'mob5305_Leave')
RegisterUnitEvent(5305, 3, 'mob5305_Kill')
RegisterUnitEvent(5305, 4, 'mob5305_Die')
